home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / ftplugin / postscr.vim < prev    next >
Encoding:
Text File  |  2001-09-17  |  827 b   |  32 lines

  1. " Vim filetype plugin file
  2. " Language:        PostScript
  3. " Maintainer:      Mike Williams <mrw@netcomuk.co.uk>
  4. " Last Change:  15th August 2001
  5.  
  6. " Only do this when not done yet for this buffer
  7. if exists("b:did_ftplugin")
  8.   finish
  9. endif
  10.  
  11. " Don't load another plugin for this buffer
  12. let b:did_ftplugin = 1
  13.  
  14. " PS comment formatting
  15. setlocal comments=b:%
  16. setlocal formatoptions-=t formatoptions+=rol
  17.  
  18. " Define patterns for the matchit macro
  19. if !exists("b:match_words")
  20.   let b:match_ignorecase = 0
  21.   let b:match_words = '<<:>>,\<begin\>:\<end\>,\<save\>:\<restore\>,\<gsave\>:\<grestore\>'
  22. endif
  23.  
  24. set cpo-=C
  25.  
  26. " Define patterns for the browse file filter
  27. if has("gui_win32") && !exists("b:browsefilter")
  28.   let b:browsefilter = "PostScript Files (*.ps)\t*.ps\n" .
  29.     \ "EPS Files (*.eps)\t*.eps\n" .
  30.     \ "All Files (*.*)\t*.*\n"
  31. endif
  32.